ARM: VGIC: carve out struct vgic_cpu and struct vgic_dist
authorAndre Przywara <andre.przywara@linaro.org>
Fri, 9 Mar 2018 15:11:26 +0000 (15:11 +0000)
committerJulien Grall <julien.grall@arm.com>
Mon, 12 Mar 2018 11:45:16 +0000 (11:45 +0000)
commitf47e3bdf9abb30750d2c9477584d726c9591dbae
treee2507c297581b698fcc2b291393a19fcbe044c46
parentfd2df4340a488df8d370ee087b42444a51dfcd38
ARM: VGIC: carve out struct vgic_cpu and struct vgic_dist

Currently we describe the VGIC specific fields in a structure
*embedded* in struct arch_domain and struct arch_vcpu. These members
there are however related to the current VGIC implementation, and will
be substantially different in the future.
To allow coexistence of two implementations, move the definition of these
embedded structures into vgic.h, and just use the opaque type in the arch
specific structures.
This allows easy switching between different implementations later.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/include/asm-arm/domain.h
xen/include/asm-arm/vgic.h